from utils import device, wlan

print("设备型号:", device.get_platform())

device_id = device.get_id()
print("设备ID: ", device_id)

device.gc_collect()
free_m = device.get_gc_free_mem()
alloc_m = device.get_gc_alloc_mem()
print("Memory info >>  free_m: ", free_m / 1024, "KB  alloc_m: ", alloc_m / 1024, "KB")


flash_size = device.get_flash_size()
print("flash size: ", flash_size, "KB")


temp_value = device.get_temperature()
print("mcu temperature: ", temp_value, "℃")

if_config = wlan.get_ifconfig()
print("network: ", if_config)
